settings: Fix the type annotation for color-hash
authorEmmanuele Bassi <ebassi@gnome.org>
Thu, 11 Jun 2015 10:43:35 +0000 (11:43 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Thu, 11 Jun 2015 10:45:03 +0000 (11:45 +0100)
The (element-type) annotation cannot be used with properties that return
container types like GHashTable; we need to use the (type) annotation.

https://bugzilla.gnome.org/show_bug.cgi?id=750489

gtk/gtksettings.c

index 11f24e3b2eef6db017ff5766698457db83aa5842..e0464555ea9df1eb6d7d0cc826678c1331588fd6 100644 (file)
@@ -924,7 +924,7 @@ gtk_settings_class_init (GtkSettingsClass *class)
   g_assert (result == PROP_ERROR_BELL);
 
   /**
-   * GtkSettings:color-hash: (element-type utf8 Gdk.Color)
+   * GtkSettings:color-hash: (type GLib.HashTable(utf8,Gdk.Color)) (transfer container)
    *
    * Holds a hash table representation of the #GtkSettings:gtk-color-scheme
    * setting, mapping color names to #GdkColors.